import './styles/index.scss';

import { createApp } from 'vue';
import App from './App.vue';

import pinia from './stores';
import router from './router';
import './permission';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import { Uploader } from 'vant';
import 'vant/lib/index.css';

const app = createApp(App);

app.use(router);
app.use(pinia);
app.use(ElementPlus, {
    locale: zhCn
});
app.use(Uploader);

Object.keys(ElementPlus).forEach(key => {
    app.component(key, ElementPlus[key]);
});

app.mount('#app');
